import { prop } from '@typegoose/typegoose';
import { EntityModel } from '@midwayjs/typegoose';

@EntityModel()
export class Tree {

    @prop(String)
    public label?: string;

    @prop(String)
    public attr?: string;

    @prop({ type: () => [Object] })
    public children?: object[];
}
